<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: info.html.php 3533 2011-11-21 14:07:21Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
    <div class="info_holder">
        <h1 class="event_title">{$aEvent.title}</h1>
            <div class="event_time">
                    <span>
                           {$aEvent.event_date}
                    </span>
            </div>	
            <div class="event_locations">				 	
                    {$aEvent.location|clean|split:60}
                    {if !empty($aEvent.address)}
                    <div class="p_2">{$aEvent.address|clean}</div>
                    {/if}			
                    {if !empty($aEvent.city)}
                    <div class="p_2">{$aEvent.city|clean}</div>
                    {/if}					
                    {if !empty($aEvent.postal_code)}
                    <div class="p_2">{$aEvent.postal_code|clean}</div>
                    {/if}								
                    {if !empty($aEvent.country_child_id)}
                    <div class="p_2">{$aEvent.country_child_id|location_child}</div>
                    {/if}			
                    <div class="p_2">{$aEvent.country_iso|location}</div>
                    
            </div>
            <div class="event_rsvp" style="padding-left: 12px;padding-bottom: 10px;border-bottom: 2px #b5b5b5 solid;">
                <p>Are you going?</p>
                <form method="post" action="{url link='current'}" onsubmit="$('#js_event_rsvp_update').html($.ajaxProcess('{phrase var="event.updating"}')).show(); $(this).ajaxCall('event.addRsvp', '&id={$aEvent.event_id}'); return false;">
                    {if isset($aCallback) && $aCallback !== false}
                            <div><input type="hidden" name="module" value="{$aCallback.module}" /></div>
                            <div><input type="hidden" name="item" value="{$aCallback.item}" /></div>
                    {/if}
                    <div style="display: none;">
                            <input type="radio" name="rsvp" value="1" id="js_event_rsvp_yes" class="checkbox v_middle js_event_rsvp" {if $aEvent.rsvp_id == 1}checked="checked" {/if}/>
                            <input type="radio" name="rsvp" value="2" id="js_event_rsvp_no" class="checkbox v_middle js_event_rsvp" {if $aEvent.rsvp_id == 2}checked="checked" {/if}/>
                            <input type="radio" name="rsvp" value="3" id="js_event_rsvp_maybe" class="checkbox v_middle js_event_rsvp" {if $aEvent.rsvp_id == 3}checked="checked" {/if}/>
                    </div>
                    <input class="button" type="submit" value="Yes" onclick="$('.js_event_rsvp').attr('checked', false); $('#js_event_rsvp_yes').attr('checked', true);"/>
                    <input class="button" type="submit" value="No" onclick="$('.js_event_rsvp').attr('checked', false); $('#js_event_rsvp_no').attr('checked', true);"/>
                    <input class="button" type="submit" value="Maybe" onclick="$('.js_event_rsvp').attr('checked', false); $('#js_event_rsvp_maybe').attr('checked', true);"/>
                    <span id="js_event_rsvp_update"></span>
                </form>
            </div>
            <div class="event_description">
                <div class="event_description_text">
                    <div class="info" style="border-bottom: none;">
                        <div class="info_left">
                                {phrase var='event.created_by'}
                        </div>
                        <div class="info_right">
                                {$aEvent|user}
                                <div>
                                    {$aEvent.description|parse|split:70}
                                </div>
                        </div>
                    </div>
                    
                </div>
            </div>
            <div class="event_map">
                <div class="event_map_direction">                    
                </div>
                <div class="event_map_image"> 
                    {if isset($aEvent.location)}						
                    <div style="width:420px; height:170px; position:relative;">
                            <div style="margin-left:-8px; margin-top:-8px; position:absolute; background:#ad627f; border:1px #8a4660 solid; width:6px; height:6px; left:50%; top:50%; z-index:200; overflow:hidden; text-indent:-1000px; border-radius:6px;">Marker</div>
                            <a href="http://maps.google.com/?q={$aEvent.location}" target="_blank" title="{phrase var='event.view_this_on_google_maps'}"><img src="http://maps.googleapis.com/maps/api/staticmap?center={$aEvent.location}&amp;zoom=16&amp;size=420x170&amp;sensor=false&amp;maptype=roadmap" alt="" /></a>
                            <div class="content_on_map">
                                <span class="event_img"></span>
                                <span class="adddress">{$aEvent.location}</span>
                                <div class="view_on_map">					
                                     <a href="http://maps.google.com/?q={$aEvent.location}" target="_blank">{phrase var='event.view_on_google_maps'}</a>
                                </div>
                            </div>
                    </div>                    			
                    {/if}
                </div>
            </div>
    </div>    
